*{
	margin: 0;
	padding: 0;
	list-style: none;
	text-decoration: none;
}

body{
	background-image: url(../img/1.jpg);
	background-repeat: no-repeat;
	-webkit-background-size: cover;
	background-size: cover;
}

.container{
	width: 500px;
	background-color: #eee;
	margin:auto;
	margin-top: 100px;
	border-radius: 10px;
	position: relative;
}

.container p{
	width: 450px;
	text-align: center;
	color:gray;
	height: 50px;
	line-height: 50px;
	border-bottom: 1px solid gainsboro;
	margin: auto;
}

#chatBox{
	height: 550px;
	position: relative;
	overflow: auto;
}

.chatList{
	padding: 25px;
	display: flex;
}

.right{
	flex-direction: row-reverse;
}

.left img{
	margin-right: 20px;
}

.right img{
	margin-left: 20px;
}

.chatList img{
	width: 40px;
	height: 40px;
}

.chatList span{
	background-color: #fff;
	min-width: 40px;
	max-width: 300px;
	padding: 10px;
	position: relative;/*大相小绝*/
}

.left span::before{
	content: '';
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-right-color: white;
	position: absolute;
	top:10px;
	left:-20px;
}

.right span::before{
	content: '';
	width: 0;
	height: 0;
	border: 10px solid transparent;
	border-left-color: white;
	position: absolute;
	top:10px;
	right:-20px;
}

#txtArea{
	width: 500px;
	height: 100px;
	position: absolute;
	bottom: 0;
	border: none;
	outline: none;
	background-color: #eee;
	border-top: 1px solid gainsboro;
	resize: none;
	padding: 12px;
	box-sizing: border-box;
	font-family: "微软雅黑";
}

#send{
	position: absolute;
	bottom: 10px;
	right: 10px;
	width: 50px;
	height: 30px;
}
